package com.example.sls.service.impl.user;

import com.example.sls.pojo.user.ExerciseData;
import com.example.sls.dao.user.ExerciseDataDao;
import com.example.sls.service.intserfaces.user.ExerciseDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 运动数据表(ExerciseData)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:56
 */
@Service
public class ExerciseDataServiceImpl implements ExerciseDataService {
  @Autowired
  ExerciseDataDao exerciseDataDao;

  @Override
  public ExerciseData queryById(Integer id) {
    return exerciseDataDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return exerciseDataDao.deleteById(id);
  }

  @Override
  public int update(ExerciseData exerciseData) {
    return exerciseDataDao.update(exerciseData);
  }

  @Override
  public int insert(ExerciseData exerciseData) {
    return exerciseDataDao.insert(exerciseData);
  }

  @Override
  public long count() {
    return exerciseDataDao.count();
  }

  @Override
  public List<ExerciseData> queryAllByLimit(ExerciseData exerciseData, Integer pageSize, Integer offset) {
    return exerciseDataDao.queryAllByLimit(exerciseData, pageSize, offset);
  }
}
